{"ast":null,"code":"import classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonAvatar = props => {\n  const {\n    prefixCls: customizePrefixCls,\n    className,\n    active,\n    shape = 'circle',\n    size = 'default'\n  } = props;\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const otherProps = omit(props, ['prefixCls', 'className']);\n  const cls = classNames(prefixCls, `${prefixCls}-element`, {\n    [`${prefixCls}-active`]: active\n  }, className, hashId);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n    className: cls\n  }, /*#__PURE__*/React.createElement(Element, Object.assign({\n    prefixCls: `${prefixCls}-avatar`,\n    shape: shape,\n    size: size\n  }, otherProps))));\n};\nexport default SkeletonAvatar;","map":{"version":3,"names":["classNames","omit","React","ConfigContext","Element","useStyle","SkeletonAvatar","props","prefixCls","customizePrefixCls","className","active","shape","size","getPrefixCls","useContext","wrapSSR","hashId","otherProps","cls","createElement","Object","assign"],"sources":["/data/messenger.client/node_modules/antd/es/skeleton/Avatar.js"],"sourcesContent":["import classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonAvatar = props => {\n  const {\n    prefixCls: customizePrefixCls,\n    className,\n    active,\n    shape = 'circle',\n    size = 'default'\n  } = props;\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const otherProps = omit(props, ['prefixCls', 'className']);\n  const cls = classNames(prefixCls, `${prefixCls}-element`, {\n    [`${prefixCls}-active`]: active\n  }, className, hashId);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n    className: cls\n  }, /*#__PURE__*/React.createElement(Element, Object.assign({\n    prefixCls: `${prefixCls}-avatar`,\n    shape: shape,\n    size: size\n  }, otherProps))));\n};\nexport default SkeletonAvatar;"],"mappings":"AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,aAAa,QAAQ,oBAAoB;AAClD,OAAOC,OAAO,MAAM,WAAW;AAC/B,OAAOC,QAAQ,MAAM,SAAS;AAC9B,MAAMC,cAAc,GAAGC,KAAK,IAAI;EAC9B,MAAM;IACJC,SAAS,EAAEC,kBAAkB;IAC7BC,SAAS;IACTC,MAAM;IACNC,KAAK,GAAG,QAAQ;IAChBC,IAAI,GAAG;EACT,CAAC,GAAGN,KAAK;EACT,MAAM;IACJO;EACF,CAAC,GAAGZ,KAAK,CAACa,UAAU,CAACZ,aAAa,CAAC;EACnC,MAAMK,SAAS,GAAGM,YAAY,CAAC,UAAU,EAAEL,kBAAkB,CAAC;EAC9D,MAAM,CAACO,OAAO,EAAEC,MAAM,CAAC,GAAGZ,QAAQ,CAACG,SAAS,CAAC;EAC7C,MAAMU,UAAU,GAAGjB,IAAI,CAACM,KAAK,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;EAC1D,MAAMY,GAAG,GAAGnB,UAAU,CAACQ,SAAS,EAAG,GAAEA,SAAU,UAAS,EAAE;IACxD,CAAE,GAAEA,SAAU,SAAQ,GAAGG;EAC3B,CAAC,EAAED,SAAS,EAAEO,MAAM,CAAC;EACrB,OAAOD,OAAO,EAAE,aAAad,KAAK,CAACkB,aAAa,CAAC,KAAK,EAAE;IACtDV,SAAS,EAAES;EACb,CAAC,EAAE,aAAajB,KAAK,CAACkB,aAAa,CAAChB,OAAO,EAAEiB,MAAM,CAACC,MAAM,CAAC;IACzDd,SAAS,EAAG,GAAEA,SAAU,SAAQ;IAChCI,KAAK,EAAEA,KAAK;IACZC,IAAI,EAAEA;EACR,CAAC,EAAEK,UAAU,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC;AACD,eAAeZ,cAAc"},"metadata":{},"sourceType":"module"}